home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.internetmci.com!xmission!news
- From: jsburger@xmission.com (John S. Burger)
- Newsgroups: comp.sys.amiga.datacomm
- Subject: Re: Reconnect PPP after a crash ?
- Date: 2 Jan 1996 16:38:08 GMT
- Organization: XMission Internet (801 539 0900)
- Message-ID: <3352.6573T898T2458@xmission.com>
- References: <1878.6573T24T2823@xs4all.nl>
- NNTP-Posting-Host: slc103.xmission.com
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- On or about 31-Dec-95 04:35:52 avdsjw typed the following words about
- "Reconnect PPP after a crash ?". My reply is thus...
-
-
- a> Hi,
-
- a> I'm trying to figure out wether it's possible to reestablish a PPP-connect
- a> after a crash/reset. I'm using the builtin-dialer of PPP 1.3, it logs on a
- a> starts a script that sets up AmiTCP 4.1. Everything is alright untill some
- a> program crashes and i have to restart my computer. Then when i try the scr
- a> again the modem just hangs up and my connection is gone.
- a> I hope someone has a solution or script.
-
- a> This is the script i use :
- a> ****************************************************************
-
- a> .key IP,HN/K,DEST/K,MASK/K,GW/K,USER/K,SRV/S,
- a> BOOTP/S,UMASK/K,S2CF/K,S2OPT/K,IFACE/K
- a> ,DEBUG/S
- a> .bra {
- a> .ket }
-
- a> ; Default login name
- a> .def USER avdsjw
- a> ; User's file creation mask
- a> .def UMASK 022
-
- a> ; Log in
- a> echo
- a> echo login: {USER}
- a> AmiTCP:bin/login -f {USER}
- a> AmiTCP:bin/umask {UMASK}
-
- a> AmiTCP:bin/online ppp0
-
- a> IF NOT WARN
- a> AmiTCP:AmiTCP
- a> WaitForPort AMITCP
- a> ; Configure loop-back device
- a> AmiTCP:bin/ifconfig lo0 localhost
- a> ; Configure ppp0
- a> AmiTCP:bin/ifconfig ppp0 $ppp0IPLocal $ppp0IPRemote
- a> ; Add route to this host
- a> AmiTCP:bin/route add $ppp0IPLocal localhost
- a> ; Add route to the default gateway
- a> AmiTCP:bin/route add default $ppp0IPRemote
-
- a> ; save IPADDRESSes to ENVARC to restart after crash ?
- a> copy ENV:ppp0IPLocal to ENVARC:
- a> copy ENV:ppp0IPRemote to ENVARC:
-
- a> echo "Quering Name Server for the host name..."
- a> SetEnv HOSTNAME `AmiTCP:bin/hostname`
- a> echo "Host name : "$HOSTNAME
-
- a> Assign >NIL: TCP: EXISTS
- a> IF WARN
- a> Mount TCP: FROM AmiTCP:devs/inet-mountlist
- a> EndIF
- a> ; Start the internet `super server'
- a> Run <NIL: >NIL: AmiTCP:bin/inetd
-
- a> EndIF
-
- a> ***************************************************************
-
-
- Someware near the end of you script copy the environment variables
- ppp0IPLocal and pp0IPRemote to Env-Archive. These variables contain the IP
- addresses for the current session. That way when you have a crash and reboot
- they are copied back to ENV: where they are available to ppp.device. Next make
- sure you specify th CD option in your ppp0.config environment variable. This
- keeps the ppp.device from trying to redial if the modem is still on line. Then
- be sure your modem is set to ignore the DTR line so the modem does not hang up
- when you reboot.
-
- It works here very well. I use this procedure daily. :<)
-
- --
- // -= John =- jsburger@xmission.com BIX: jburger
- \X/ Via
- Amateur Radio KB0ES T
- Amiga 2000 H
- A2630 A2632 John S. Burger Hooper, UT O
- 2+14megs RAM R
- 850meg HD This message was composed on... 2.22
- 31-Dec-95 14:47:09 MST
- --
-
- Failsafe pickup: Who's a nice girl like you doing in a place like this?
-
-